package edu.sctu.wangfuxin.day20150623.test_Json;

/**
 * Created by user06 on 2015/6/25.
 */
public class PrintJson {
    public void print(Data data){
        System.out.println("error:"+data.error);
        System.out.println("count:"+data.count);
        System.out.println("message:"+data.message);
        System.out.println("page:"+data.page);
        System.out.println("size:"+data.size);
        for (int i = 0; i < data.list.size(); i++) {
            System.out.println("goods_id:"+data.list.get(i).goods_id);
            System.out.println("goods_name:"+data.list.get(i).goods_name);
            System.out.println("goods_price:"+data.list.get(i).goods_price);
        }
    }
}
